<form class="well form-horizontal span8" action="<?php echo base_url() . "admin.php/periodo/ingresodatos" ?>" method="post">
    <legend>CREAR DATOS DEL PERIODO ACADEMICO</legend>
    <div class="tabbable">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#1" data-toggle="tab">Datos Generales</a></li>
            <li><a href="#2" data-toggle="tab">Fechas de Examenes</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="1">
                <div class="control-group">

                    <label class="control-label" for="select01">Instituci&oacute;n </label>
                    <div class="controls">

                        <select id="select01"  name="ide_inst">
                            <?php foreach ($institucion as $i => $row) { ?>
                                <option  value ="<?php echo $row['ide_inst'] ?>"><?php echo $row['nombre_inst'] ?></option>
                            <?php } ?>
                        </select>

                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="input03">Descripci&oacute;n del Periodo</label>
                    <div class="controls">
                        <input type="text" class="input-medium span4"  name="txtdes" value="<?php echo set_value('txtdes'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('txtdes') ?>
                        </div>

                    </div>
                </div>


                <div class="control-group">
                    <label class="control-label" for="input04">Fecha Inicio Per&iacute;odo</label>
                    <div class="controls">
                        <input type="text" class="input-medium "  id="datepicker" name="dateini" value="<?php echo set_value('dateini'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('dateini') ?>
                        </div>

                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="input05">Fecha fin Per&iacute;odo</label>
                    <div class="controls">
                        <input type="text" class="input-medium"  id="datepicker1" name="datefin" value="<?php echo set_value('datefin'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('datefin') ?>
                        </div>

                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="input05">Inicio Matr&iacute;culas Ordinarias</label>
                    <div class="controls">
                        <input type="text" class="input-medium "  id="datepicker2" name="dateiord" value="<?php echo set_value('dateiord'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('dateiord') ?>
                        </div>

                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="input06">Fin Matr&iacute;culas Ordinarias</label>
                    <div class="controls">
                        <input type="text" class="input-medium"  id="datepicker3" name="dateford" value="<?php echo set_value('dateford'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('dateford') ?>
                        </div>

                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="input07">Inicio Matr&iacute;culas Extraordinarias</label>
                    <div class="controls">
                        <input type="text" class="input-medium "  id="datepicker4" name="dateiext" value="<?php echo set_value('dateiext'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('dateiext') ?>
                        </div>

                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="input08">Fin Matr&iacute;culas Extraordinarias</label>
                    <div class="controls">
                        <input type="text" class="input-medium"  id="datepicker5" name="datefext" value="<?php echo set_value('datefext'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('datefext') ?>
                        </div>

                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="select02">R&eacute;gimen </label>
                    <div class="controls" >
                        <select id="select02" name="regimen">
                            <option>Sierra</option>
                            <option>costa</option>
                        </select>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="select03">Estado del Per&iacute;odo</label>
                    <div class="controls ">
                        <select id="select03"  name="estado">
                            <option>ABIERTO</option>
                            <option>PENDIENTE</option>
                            <option>CERRADO</option>
                        </select>
                    </div>
                </div>
                <div class="control-group">
               
                    <label class="control-label" for="input02">Costo del Semestre</label>
                        <div class="controls">
                            <input type="text" class="input-medium span2"  name="costo_lec" value="0" >
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('costo_lec') ?>
                        </div>

                        </div>
                </div>
                <div class="control-group">
               
                    <label class="control-label" for="input21">Costo Matricula por Materias</label>
                        <div class="controls">
                            <input type="text" class="input-medium span2"  name="cost_materi_lec" value="0" >
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('cost_materi_lec') ?>
                        </div>

                        </div>
                </div>
                <div class="control-group">
               
                    <label class="control-label" for="input22">Costo Materias Teoricas</label>
                        <div class="controls">
                            <input type="text" class="input-medium span2"  name="cost_teor_lec" value="0" >
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('cost_teor_lec') ?>
                        </div>

                        </div>
                </div>
                <div class="control-group">
               
                    <label class="control-label" for="input23">Costo Materias Practicas</label>
                        <div class="controls">
                            <input type="text" class="input-medium span2"  name="cost_pract_lec" value="0" >
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('cost_pract_lec') ?>
                        </div>

                        </div>
                </div>
                <div class="control-group">

                    <label class="control-label" for="input24">Valor de la Inscripcion</label>
                    <div class="controls">
                        <input type="text" class="input-medium span2"  name="costo_inscrip_lec" value="0" >
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('costo_inscrip_lec') ?>
                        </div>

                    </div>
                </div>

                <div class="control-group">

                    <label class="control-label" for="input24">Valor de Convalidacion por Inscripcion</label>
                    <div class="controls">
                        <input type="text" class="input-medium span2"  name="costo_inscrip_conv_lec" value="0" >
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('costo_inscrip_conv_lec') ?>
                        </div>

                    </div>
                </div>

                <div class="control-group">

                    <label class="control-label" for="input24">Valor Hoja membretada</label>
                    <div class="controls">
                        <input type="text" class="input-medium span2"  name="hoja_valor_lec" value="0" >
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('costo_inscrip_conv_lec') ?>
                        </div>

                    </div>
                </div>
                
            </div>
            <div class="tab-pane" id="2">
                <div class="control-group">
                    <label class="control-label" for="input09">Entrega Examen Primer Bimestre</label>
                    <div class="controls">
                        <input type="text" class="input-medium "  id="datepicker6" name="dateex1ba" value="<?php echo set_value('dateex1ba'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('dateex1ba') ?>
                        </div>

                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="input10">Entrega Examen Primer Bimestre(B)</label>
                    <div class="controls">
                        <input type="text" class="input-medium"  id="datepicker7" name="dateex1bb" value="<?php echo set_value('dateex1bb'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('dateex1ba') ?>
                        </div>

                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="input05">Entrega Examen Segundo Bimestre</label>
                    <div class="controls">
                        <input type="text" class="input-medium "  id="datepicker8" name="dateex2ba" value="<?php echo set_value('dateex2ba'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('dateex2ba') ?>
                        </div>

                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="input06">Entrega Examen Segundo Bimestre(B)</label>
                    <div class="controls">
                        <input type="text" class="input-medium"  id="datepicker9" name="dateex2bb" value="<?php echo set_value('dateex2bb'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('dateex1bb') ?>
                        </div>

                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="input07">Entrega Examen Recuperaci&iacute;n </label>
                    <div class="controls">
                        <input type="text" class="input-medium "  id="datepicker10" name="datesuplea" value="<?php echo set_value('datesuplea'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('datesuplea') ?>
                        </div>

                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="input08">Entrega Examen Recuperaci&iacute;n(B)</label>
                    <div class="controls">
                        <input type="text" class="input-medium"  id="datepicker11" name="datesupleb" value="<?php echo set_value('datesupleb'); ?>">
                        <li class="icon-asterisk"></li>
                        <div class='MensajeError'>
                            <?php echo form_error('datesupleb') ?>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php if (isset($msj_error)) { ?>
        <div class='MensajeError'>
            <?php echo ($msj_error); ?>
        </div>
    <?php } ?>

    <div class="controls">
        <button type="submit" class="btn">Grabar Datos</button>
        <a href="<?php echo base_url() . "admin.php/periodo/inicio" ?>">
            <img src="<?php echo base_url(); ?>commons/images/boton_volver.gif"></a>
    </div> 



</form>

